#pragma warning(disable : 4996)
n = 1000010;
for (i = 0; i < a; i++)
{
    if (b[i] < n)
        n = b[i];
}